<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>重置密码 - 便捷工具合集</title>
        <link
            rel="stylesheet"
            href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"
        />
        <link rel="icon" href="faviconlogo.ico">

        <link rel="stylesheet" href="css/styles.css" />
        <link rel="stylesheet" href="css/reset-password.css" />
    </head>
    <body>
        <!-- 导航栏代码 -->
<nav class="navbar">
    <div class="logo no-wrap">
        <i class="fas fa-toolbox"></i>
        <span>便捷工具合集</span>
    </div>
    <div class="nav-container">
        <ul class="nav-links">
            <li><a href="index.html" class="nav-item no-wrap">首页</a></li>
            <li><a href="calculator.html" class="nav-item no-wrap">计算工具</a></li>
            <li><a href="image-processing.html" class="nav-item no-wrap">图像处理</a></li>
            <li><a href="dev-tools.html" class="nav-item no-wrap">开发工具</a></li>
            <li><a href="life-tools.html" class="nav-item no-wrap">生活工具</a></li>
            <li><a href="404.html" class="nav-item no-wrap">API工具</a></li>
            <li><a href="about.html" class="nav-item active no-wrap">关于我们</a></li>
        </ul>
        <div class="nav-actions">
            <button id="sidebarToggle" class="btn mobile-menu-btn">
                <i class="fas fa-bars no-wrap"></i>
            </button>
            <li id="userInfo" style="display: none">
                <span class="username"></span>
                <button onclick="logout()" class="btn logout-btn">
                    <i class="fas fa-sign-out-alt"></i>
                </button>
            </li>
            <li id="login">
                <a href="login.html" class="nav-item active no-wrap login-link"
                    ><i class="fas fa-sign-in-alt"></i>登录</a
                >
            </li>
        </div>
    </div>
</nav>
        
        <!-- 重置密码表单 -->
        <div class="reset-container">
            <div class="reset-card">
                <h2><i class="fas fa-lock"></i> 重置密码</h2>

                <form id="resetForm">
                    <input type="hidden" id="resetEmail" />
                    <input type="hidden" id="resetToken" />

                    <div class="form-group">
                        <label for="newPassword">新密码</label>
                        <div class="input-group">
                            <i class="fas fa-lock"></i>
                            <input
                                type="password"
                                id="newPassword"
                                placeholder="输入新密码(至少8位)"
                                required
                            />
                            <button
                                type="button"
                                id="toggleNewPassword"
                                class="eye-btn"
                            >
                                <i class="fas fa-eye"></i>
                            </button>
                        </div>
                        <div class="error-message" id="newPasswordError"></div>
                        <div class="password-strength">
                            <div class="strength-bar" id="strengthBar"></div>
                            <span id="strengthText">密码强度: 弱</span>
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="confirmNewPassword">确认新密码</label>
                        <div class="input-group">
                            <i class="fas fa-lock"></i>
                            <input
                                type="password"
                                id="confirmNewPassword"
                                placeholder="再次输入新密码"
                                required
                            />
                            <button
                                type="button"
                                id="toggleConfirmNewPassword"
                                class="eye-btn"
                            >
                                <i class="fas fa-eye"></i>
                            </button>
                        </div>
                        <div
                            class="error-message"
                            id="confirmPasswordError"
                        ></div>
                    </div>

                    <button type="submit" class="btn btn-reset">
                        重置密码
                    </button>
                </form>
            </div>
        </div>

        <!-- 页脚 -->
<footer>
    <div class="footer-content">
        <div class="footer-column">
            <h3>在线工具合集</h3>
            <p>提供全面实用的在线工具，助力高效完成各类任务。</p>
            <div class="social-links" style="display: flex; gap: 1rem; margin-top: 1rem">
                <a href="#" style="color: white"><i class="fab fa-facebook fa-lg"></i></a>
                <a href="#" style="color: white"><i class="fab fa-twitter fa-lg"></i></a>
                <a href="#" style="color: white"><i class="fab fa-instagram fa-lg"></i></a>
                <a href="#" style="color: white"><i class="fab fa-github fa-lg"></i></a>
            </div>
        </div>

        <div class="footer-column">
            <h3>工具分类</h3>
            <ul class="footer-links">
                <li><a href="calculator.html"><i class="fas fa-calculator"></i> 计算工具</a></li>
                <li><a href="image-processing.html"><i class="fas fa-image"></i> 图像处理</a></li>
                <li><a href="dev-tools.html"><i class="fas fa-code"></i> 开发工具</a></li>
                <li><a href="life-tools.html"><i class="fas fa-clock"></i> 生活工具</a></li>
                <li><a href="edu-tools.html"><i class="fas fa-book"></i> 教育工具</a></li>
            </ul>
        </div>

        <div class="footer-column">
            <h3>帮助中心</h3>
            <ul class="footer-links">
                <li><a href="#" ><i class="fas fa-question-circle"></i> 常见问题</a></li>
                <li><a href="#" ><i class="fas fa-play-circle"></i> 使用教程</a></li>
                <li><a href="#" ><i class="fas fa-comment"></i> 意见反馈</a></li>
                <li><a href="about.html"><i class="fas fa-envelope"></i> 联系我们</a></li>
            </ul>
        </div>

        <div class="footer-column">
            <h3>订阅更新</h3>
            <p>获取最新工具和功能更新</p>
            <div class="subscribe-form">
                <div class="input-group">
                    <input type="email" placeholder="您的邮箱" class="form-control" />
                    <button class="btn btn-primary">订阅</button>
                </div>
            </div>
        </div>
    </div>

    <div class="copyright">
        <p>&copy; 2025 在线工具合集 - 个人开发者保留所有权利</p>
    </div>
</footer>

        <script src="js/reset-password.js"></script>
        <script src="js/common.js"></script>
        <script src="js/left.js"></script>
    </body>
</html>
